<h1>Listing portfolios</h1>

<table>
  <tr>
    <th>Amount</th>
  </tr>
  
<% for portfolio in @portfolios %>
  <tr>
    <td><%=h portfolio.amount %></td>
    <td><%= link_to 'Show', portfolio_path(portfolio) %></td>
    <td><%= link_to 'Edit', edit_portfolio_path(portfolio) %></td>
    <td><%= link_to 'Destroy', portfolio_path(portfolio), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New portfolio', new_portfolio_path %>